package cn.lvji.springboot.learn3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Redirect 和Forward 测试
 *
 * @author zhouzx
 */
@Controller
public class RediAndForwController {
    @GetMapping("/redirect")
    public String redirect() {
        return "redirect:/scenic/list";
    }

    @GetMapping("forward")
    public String forward() {
        return "forward:/scenic/view";
    }
}
